<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title></title>
</head>
<body>
</body>
<script src="utils.js"></script>
<script>
    window.onload = function () {
        var params = getUrlParams();
        var form = document.createElement('form');
        form.method = 'get';
        form.action = 'http://imopei.95by.cn/api/user/wxLogin';
//        form.action = 'http://imopei.95by.cn/api/user/wxLogin';
        form.style = 'display:none'
        // 二维码
        form.appendChild(createInput('code', params['code']));
        // 推荐人
        form.appendChild(createInput('state', params['state']));
        document.body.appendChild(form);
        form.submit();
    }
</script>
</html>